import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取自我评价*/
export const getSelfEvaluation = (params: { page: number, pageSize: number ,content ?: string}) => {
    return request({
        url: '/api/v2/admin/getSelfEvaluation',
        method: 'get',
        params
    })
} 

/**添加自我评价*/
export const addSelfEvaluation = (data: addFormData ) => request({
    url: '/api/v2/admin/addSelfEvaluation',
    method: 'post',
    data
}) 

/**删除自我评价*/
export const delSelfEvaluation = (data: { ID: string }) => request({
    url: '/api/v2/admin/delSelfEvaluation',
    method: 'post',
    data
})

/**更新自我评价*/
export const updateSelfEvaluation = (data: editFormData) => request({
    url: '/api/v2/admin/updateSelfEvaluation',
    method: 'post',
    data
})

